package com.ruoyi.web.controller.biz;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ruoyi.biz.bean.bo.CaseInfoCourtBO;
import com.ruoyi.biz.bean.vo.dto.CaseInfoCourtDTO;
import com.ruoyi.biz.bean.vo.qo.CaseInfoCourtQO;
import com.ruoyi.biz.domain.CaseInfoCourt;
import com.ruoyi.biz.service.caseinfo.ICaseInfoCourtService;
import com.ruoyi.framework.interceptor.anno.MyPermissions;
import com.ruoyi.web.controller.core.impl.BaseBQCtrollerExImpls;

/**
 * casetypeController
 * 
 * @author riverbo
 * @date 2024-05-06
 */
@MyPermissions("案件类型信息")
@Controller
@RequestMapping("biz/caseinfo/court")
public class CaseInfoCourtController extends BaseBQCtrollerExImpls<ICaseInfoCourtService, CaseInfoCourt, CaseInfoCourtBO, CaseInfoCourtQO, CaseInfoCourtDTO> {
	
	@Override
	public CaseInfoCourtBO selectBOById(Long id) {
		CaseInfoCourtBO bo = super.selectBOById(id);
		if (bo == null) {
			bo = new CaseInfoCourtBO();
		}
		if (bo.getCaseId() == null) {
			bo.setCaseId(id.intValue());
		}
		return bo;
	}

}